cPanel Config

Loan Manager

levitraCialisZappos

Welcome to cPanelConfig the fastest growing cPanel configuration and troubleshooting guide on the internet. Please take the time and register. We would love to have your contribution to this completely free cPanel resource. We are updating this daily so be sure to visit us on a regular basis.

Install BFD – Brute Force Detection

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Posted by yolau


What is BFD?
BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans.

Install instructions

Please note that you must have APF installed before you install BFD. The installation guide for APF is located here.

  1. Download and extract BFD
  2. wget http://www.r-fx.ca/downloads/bfd-current.tar.gz
    gzip -d bfd-current.tar.gz
    tar -xf bfd-current.tar

  3. Move to the extracted directory
  4. cd bfd-0.9/

  5. Run the installer
  6. ./install.sh

    After the installer runs you should see something like

    BFD installed
    Install path: /usr/local/bfd
    Config path: /usr/local/bfd/conf.bfd
    Executable path: /usr/local/sbin/bfd

  7. Edit the configuration files
  8. pico /usr/local/bfd/conf.bfd

    The only things that I suggest changing are:
    - ALERT_USR=”0″ to ALERT_USR=”1″
    - EMAIL_USR=”root” to EMAIL_USR=”you@domain.com”

BFD works by running a cron every 5 minutes to check for login attempts. You can customize the rules used for any of the monitored services by editing the appropriate rule located in /usr/local/bfd/rules

If you have any questions about BFD please leave a comment and I will try to answer each and every question.

Share this:
  • Digg
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • De.lirio.us
  • Furl
  • MyShare
  • Smarking
  • Technorati
  • YahooMyWeb

If you enjoyed this post, make sure you subscribe to my RSS feed!

4 Responses to “Install BFD – Brute Force Detection”

  1. Hi.

    I get a lot of Brute Force warnings on my server via SSH. Can you tell how to stop them by limiting unsuccessful login attempts to certain number (three), after which the attacker would get banned.

    Thanks

  2. Hi,

    I would recommend change your ssh port from 22 to something else like 2995 that will stop this problem.

    Make sure that you update your firewall to allow for the new ssh port.

  3. Each success only buys an admission ticket to a more difficult problem.

  4. although I dedicate a lot of of my working day on the internet taking part in games like zynga poker or mafia wars, I always like to put aside some spare time to start reading a a small number of sites sometimes and I am lucky to report this recent piece of writing is fundamentally reasonably good and noticeably more desirable than 1 / 2 the other junk I read today , at any rate i’m off to enjoy a smattering of hands of facebook poker

Leave a Reply